#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QTimer>
class MyCoin : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyCoin(QWidget *parent = nullptr);

    //参数传入  传入的是金币路径还是银币路径
    MyCoin(QString btnImg);

    //金币属性
    int posX;
    int posY;
    bool flag; //正反标志

    //改变标志的方法
    void changeFlag();
    QTimer* timer1;
    QTimer* timer2;
    int min = 1;
    int max = 8;

    bool isAnimation = false;

    void mousePressEvent(QMouseEvent *e);

    bool isWin = false;

signals:

public slots:
};

#endif // MYCOIN_H
